package com.bw.product.service.impl;

import com.bw.product.domain.PmsAttrGroup;
import com.bw.product.domain.vo.AttrGroupVo;
import com.bw.product.mapper.PmsAttrGroupMapper;
import com.bw.product.service.PmsAttrGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PmsAttrGroupServiceImpl implements PmsAttrGroupService {
    @Autowired
    private PmsAttrGroupMapper pmsAttrGroupMapper;
    /**
     * 根据attrGroupId获取属性分组详细信息
     * @param attrGroupId
     * @return
     */
    @Override
    public PmsAttrGroup selectPmsAttrGroupByAttrGroupId(Long attrGroupId) {
        return pmsAttrGroupMapper.selectPmsAttrGroupByAttrGroupId(attrGroupId);
    }


    /**
     * 根据attrGroupId获取属性分组详细信息
     * @param catalogId
     * @return
     */
    @Override
    public List<AttrGroupVo> selectAttrGroup(Long catalogId) {
        return pmsAttrGroupMapper.selectAttrGroup(catalogId);
    }
}
